package stack;

public class Test {

    public static void main(String[] args) {
        ArrayStack pArrayStack = new ArrayStack();
        for (int i = 0; i < 20; i++) {
            pArrayStack.push(i);
        }
        pArrayStack.getSizeAndCount();

        for (int i = 0; i < 20; i++) {
            Object object = pArrayStack.pop();
            System.out.println(object);
        }

        LinkedStack pLiskedStack = new LinkedStack();
        for (int i = 100; i < 120; i++) {
            pLiskedStack.push(i);
        }

        for (int i = 0; i < 20; i++) {
            Object object = pLiskedStack.pop();
            System.out.println(object);
        }

    }



}
